package com.csxy.six.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户公告关联实体类
 * 对应数据库中的user_announcement表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(name="UserAnnouncement对象", description="用户公告关联")
public class UserAnnouncement implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "关联ID")
    @TableId(value = "ua_id", type = IdType.AUTO)
    private Integer uaId;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "公告ID")
    private Integer announceId;

    @Schema(description = "通知时间")
    private Date notifiedAt;
}